using UnityEngine;
using UnityEngine.UI;

namespace RedPoint
{
    public class CountShow : RedPointBase
    {
        Text text;
        public Config redPointConfig;
        protected override void Start()
        {
            text = GetComponent<Text>();
            base.Start();
        }

        protected override string Key()
        {
            return redPointConfig.redPointKey;
        }
        protected override void OnCountChange(int count)
        {
            base.OnCountChange(count);
            text.text = count.ToString();
        }
    }
}